import React from 'react'
import { BrowserRouter, Routes, Route, NavLink } from 'react-router-dom'
import About from '../views/About'
import Home from '../views/Home'

export default function Index() {
    return (
        <BrowserRouter>
            <NavLink to="/about">关于</NavLink> | <NavLink to="/home">home</NavLink>
            <Routes>
                <Route path="/about" element={<About />}></Route>
                <Route path="/home" element={<Home />}></Route>
            </Routes>
        </BrowserRouter>
    )
}
